//package com.geek.spring.bucks.model;
//
//import lombok.AllArgsConstructor;
//import lombok.Builder;
//import lombok.Data;
//import lombok.NoArgsConstructor;
//import org.joda.money.Money;
//import org.springframework.data.redis.core.RedisHash;
//import org.springframework.data.redis.core.index.Indexed;
//
//import javax.persistence.Id;
//
//@RedisHash(value = "springbucks-coffee", timeToLive = 60)
//@Data
//@NoArgsConstructor
//@AllArgsConstructor
//@Builder
//public class CoffeeCache extends Coffee{
//    @Id
//    private Long id;
//    @Indexed
//    private String name;
//    private Money price;
//}